import java.lang.reflect.InvocationTargetException;

public class Pair <T>{
    private T first;
    private T last;
    public Pair(T first, T last){
        this.first = first;
        this.last = last;
    }

    public T getFirst() {
        return first;
    }

    public T getLast() {
        return last;
    }

    public void setFirst(T first) {
        this.first = first;
    }

    public void setLast(T last) {
        this.last = last;
    }
}

class IntegerPair extends Pair<Integer>{
    public IntegerPair(Integer first, Integer last){
        super(first,last);
    }
}


